<style>
.fui-cellone{padding:0}
</style>
<div class="form-group" {guanlians}>
	<label class="col-xs-12 col-sm-3 col-md-2 right-label">{title1}</label>
	<div class="col-xs-12 col-sm-8 col-lg-9">
		<div class="col-xs-12 col-sm-5 col-lg-5" style="padding-left:0">
			<input class="form-control" ng-model="{tovalue}.{name1}"  type="text" ng-readonly="{read} || {read1}">
		</div>
		<div class="col-xs-12 col-sm-7 col-lg-7">
			<div class="fui-cellone">
			<div class="fui-cellone-label">{title2}</div>
			<div class="fui-cellone-info"><input type="text" name="{name2}" onchange="window.scope.{tovalue}.{name2}=$(this).val()" ng-model="{tovalue}.{name2}" placeholder="请选择{title2}" readonly="{read2}" class="datetimepicker form-control" style="padding-left:12px;" /></div>
			</div>
		</div>
		<div class="help-block">{help}</div>
	</div>
</div>
<script type="text/javascript">
					require(["datetimepicker"], function(){
						$(function(){
								var fmt;
								if('{time_type}'=='day'){
									fmt="Y-m-d";
								}else if('{time_type}'=='year'){
									fmt="Y";
								}else if('{time_type}'=='month'){
									fmt="Y-m";
								}else{
									fmt="Y-m-d H:i";
								}
								var option = {
									lang : "zh",
									step : 5,
									timepicker : true,
									closeOnDateSelect : true,
									format : fmt,
									
								};
							$(".datetimepicker[name = '{name2}']").datetimepicker(option);
						});
});
</script>